﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using VelesDBCore;

namespace VelesDBBL
{
    public class SecurityManager
    {
        public SecurityUserGroup GetUserGroup(string userLogin, string userPassword)
        {
            SecurityUser user = DBManager.Context.SecurityUsers.Where(x => x.SecurityUserLogin == userLogin).FirstOrDefault();
            if (user != null && user.SecurityUserPassword == userPassword) return user.SecurityUserGroup;
            return null;
        }


        
    }
}
